<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86156
  Date: 2024/12/19
  Time: 15:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <form action="/emp/confirmUpdate" method="post" enctype="multipart/form-data">
        <%--<img src="${emp.empHead}" width="50"><br>
         <input type="file" name="myfile"/><br>--%>
         <input type="number" name="empId" value="${emp.empId}"><br>
         <input type="text" name="empName" value="${emp.empName}"><br>
         <input type="text" name="empJob" value="${emp.empJob}"><br>
         <input type="number" name="empSalary" value="${emp.empSalary}"><br>
         <select name="did">
           <c:forEach items="${requestScope.depts}" var="d">
             <option ${d.deptId==emp.did?'selected':''} value="${d.deptId}">${d.deptName}</option>
           </c:forEach>
         </select>
    </form>

</body>
</html>
